<template>
  <CrudTable :columns="columns" :api="api" />
</template>
<script setup>
import CrudTable from '@/components/CrudTable.vue'
import * as api from '@/api/device'
const columns = [
  { prop: 'id', label: '设备ID' },
  { prop: 'deviceName', label: '设备名称' },
  { prop: 'model', label: '型号' },
  { prop: 'specification', label: '规格' },
  { prop: 'manufacturer', label: '生产厂家' },
  { prop: 'purchaseDate', label: '购买日期' },
  { prop: 'warrantyMonths', label: '保修期（月）' },
  { prop: 'categoryId', label: '分类ID' }
]
</script>